package com.example.myshopping3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.myshopping3.model.Comment;
import com.example.myshopping3.model.view.CommentView;

import java.util.List;

public interface CommentMapper extends BaseMapper<Comment> {
    /**
     * 根据bookId获得当前图书的评论信息
     * 并将这些评论信息封装到CommentView对象中
     * @param BookId
     * @return
     */
    List<CommentView> getComment(int BookId);
}
